package main

import (
	"Sort/implement"
	"fmt"
)

func main() {
	arrInt := []int{13, 15, 17, 19, 21, 23, 1, 3, 5, 7, 9, 11}

	fmt.Printf("\n-----sort 1 BubbleSort------\n")
	implement.Shuffle(arrInt)
	fmt.Printf("  arrInt=%v\n", arrInt)
	implement.BubbleSort(arrInt)
	fmt.Printf("  arrInt=%v\n", arrInt)

	fmt.Printf("\n-----sort 2 SelectionSort------\n")
	implement.Shuffle(arrInt)
	fmt.Printf("  arrInt=%v\n", arrInt)
	implement.SelectionSort(arrInt)
	fmt.Printf("  arrInt=%v\n", arrInt)

	fmt.Printf("\n-----sort 3 InsertionSort------\n")
	implement.Shuffle(arrInt)
	fmt.Printf("  arrInt=%v\n", arrInt)
	implement.InsertionSort(arrInt)
	fmt.Printf("  arrInt=%v\n", arrInt)

	fmt.Printf("\n-----sort 4 MergeSort------\n")
	implement.Shuffle(arrInt)
	fmt.Printf("  arrInt=%v\n", arrInt)
	resSort := implement.MergeSort(arrInt)
	fmt.Printf("  resSort=%v\n", resSort)

	fmt.Printf("\n-----sort 5 QuickSort------\n")
	implement.Shuffle(arrInt)
	fmt.Printf("  arrInt=%v\n", arrInt)
	resSort = implement.QuickSort(arrInt)
	fmt.Printf("  resSort=%v\n", resSort)

}
